<?php

namespace App\Models;

use \Illuminate\Database\Eloquent\Model;

class Match extends Model
{
    protected $table = 'tb_match';// 表名
    public $fillable = ['goods_id', 'color', 'size', 'num'];
    public $timestamps = false;// 关闭后  create方法不会修改 created_at updated_at 的值


    public function goods()
    {
        return $this->hasOne(Goods::class, 'goods_id', 'goods_id');
    }
}